//
//  ECMemberCommonTableViewCell.m
//  ECERP.CRM
//
//  Created by 刘思麟 on 2018/11/4.
//  Copyright © 2018 Mac. All rights reserved.
//

#import "ECMemberCommonTableViewCell.h"

@interface ECMemberCommonTableViewCell()

@property (nonatomic,strong) CAShapeLayer * bottomLine;

@end

@implementation ECMemberCommonTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.textLabel.font = ECFONT(14);
    self.textLabel.textColor = ECCOLOR(0x333333);
    self.textLabel.left = 18;
    if (!self.bottomLine) {
        self.bottomLine = [CAShapeLayer layer];
        self.bottomLine.borderWidth = 0.25 * PX_RELATIVE375;
        self.bottomLine.borderColor = ECCOLOR(0xD2D2D2).CGColor;
        [self.contentView.layer addSublayer:self.bottomLine];
    }
    self.bottomLine.frame = CGRectMake(12 * PX_RELATIVE375, self.contentView.height-0.5*PX_RELATIVE375, self.contentView.width - 24 * PX_RELATIVE375, 0.5 * PX_RELATIVE375);
}

@end
